<!DOCTYPE html>
<html>
    <head>
        <title>jQuery+RequireJS Sample Page</title>
        <meta charset="utf-8" />
        <!-- This is a special version of jQuery with RequireJS built-in -->
        <script data-main="scripts/main" src="scripts/require-jquery.js"></script>
    </head>
    <body>
        <h1>jQuery+RequireJS Sample Page</h1>
        <p>Look at source or inspect the DOM to see how it works.</p>
        <script>
        	var J = {
        		run : function (func) {
					var haozi = 5;
        			func(jQuery, S, haozi);
        		}
        	},
        	S = J.S = {};

        	J.run(function($, exports, haozi){
        		$(function(){
        			alert(haozi)
        			$('body').append('aaaaaaaaaaaaaaaa');
        			a=9
        		})
        	});
        </script>
    </body>
</html>
